package com.javacv.plus.extensions.video.steps;

import com.javacv.plus.core.processor.ProcessorContext;
import com.javacv.plus.core.processor.ProcessorStep;
import com.javacv.plus.extensions.video.VideoProcessor;
import com.javacv.plus.extensions.video.VideoResult;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SaveVideoStep implements ProcessorStep<VideoProcessor, VideoResult> {
    
    @Override
    public VideoResult execute(VideoProcessor processor, ProcessorContext context) throws Exception {
        log.info("保存视频到: {}", processor.getConfig().getOutputPath());
        return null;
    }
    
    @Override
    public String getStepName() {
        return "SaveVideo";
    }
    
    @Override
    public int getPriority() {
        return 1000; // 最低优先级，最后执行
    }
} 